home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / x / volume0 / awm / part01 next >
Encoding:
Internet Message Format  |  1988-08-08  |  62.0 KB

  1. Path: uunet!lll-winken!lll-tis!ames!vsi1!wyse!mikew@wyse.wyse.com
  2. From: mikew@wyse.wyse.com (Mike Wexler)
  3. Newsgroups: comp.sources.x
  4. Subject: v00i002:  Ardent Window Manager(X11), Part01/13
  5. Message-ID: <1621@wyse.wyse.com>
  6. Date: 8 Aug 88 20:23:02 GMT
  7. Sender: news@wyse.wyse.com
  8. Lines: 1673
  9. Approved: mikew@wyse.com
  10.  
  11. Submitted-by: jkh@ardent (Jordan Hubbard)
  12. Posting-number: Volume 0, Issue 2
  13. Archive-name: awm/part01
  14.  
  15. #! /bin/sh
  16. # This is a shell archive.  Remove anything before this line, then unpack
  17. # it by saving it into a file and typing "sh file".  To overwrite existing
  18. # files, type "sh file -c".  You can also feed this as standard input via
  19. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  20. # will see the following message at the end:
  21. #        "End of archive 1 (of 13)."
  22. # Contents:  awm awm/Grab.c awm/MENUS awm/bitmaps awm/bitmaps/README
  23. #   awm/bitmaps/blank.bm awm/bitmaps/destroy.bm awm/bitmaps/die.bm
  24. #   awm/bitmaps/foc.bm awm/bitmaps/hilite.bm awm/bitmaps/ic.bm
  25. #   awm/bitmaps/mac_close.bm awm/bitmaps/raise.bm awm/bitmaps/res.bm
  26. #   awm/bitmaps/resize.bm awm/bitmaps/titlehilite.bm
  27. #   awm/bitmaps/twm.focus.bm awm/bitmaps/twm.gray.bm
  28. #   awm/bitmaps/twm.hilite.bm awm/bitmaps/twm.iconify.bm
  29. #   awm/bitmaps/twm.pull.bm awm/bitmaps/twm.resize.bm awm/def.awmrc
  30. #   awm/menus awm/menus/Makefile awm/menus/README
  31. #   awm/menus/arrow_icon.h awm/menus/eventstack.h awm/menus/gray1.h
  32. #   awm/menus/menu.ext.h awm/menus/null_icon.h awm/menus/rtlmenu.h
  33. #   awm/menus/rtlmnu.opt.h awm/neaten.def.h awm/neaten.ext.h
  34. #   awm/support.c awm/support.h awm/system.awmrc awm/twm.Xdefaults
  35. #   awm/twm.awmrc
  36. # Wrapped by mikew@wyse on Mon Aug  8 12:01:39 1988
  37. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  38. if test ! -d awm ; then
  39.     echo shar: Creating directory \"awm\"
  40.     mkdir awm
  41. fi
  42. if test -f awm/Grab.c -a "${1}" != "-c" ; then 
  43.   echo shar: Will not over-write existing file \"awm/Grab.c\"
  44. else
  45. echo shar: Extracting \"awm/Grab.c\" \(1435 characters\)
  46. sed "s/^X//" >awm/Grab.c <<'END_OF_awm/Grab.c'
  47. X#ident   "%W% %G%"
  48. X
  49. X
  50. X
  51. X#ifndef lint
  52. Xstatic char *rcsid_Grab_c = "$Header: Grab.c,v 1.1 88/06/15 15:26:00 jkh Exp $";
  53. X#endif  lint
  54. X
  55. X#include "X11/copyright.h"
  56. X/*
  57. X *
  58. X * Copyright 1987, 1988 by Ardent Computer Corporation, Sunnyvale, Ca.
  59. X *
  60. X * Copyright 1987 by Jordan Hubbard.
  61. X *
  62. X *
  63. X *                         All Rights Reserved
  64. X *
  65. X * Permission to use, copy, modify, and distribute this software and its
  66. X * documentation for any purpose and without fee is hereby granted,
  67. X * provided that the above copyright notice appear in all copies and that
  68. X * both that copyright notice and this permission notice appear in
  69. X * supporting documentation, and that the name of Ardent Computer
  70. X * Corporation or Jordan Hubbard not be used in advertising or publicity
  71. X * pertaining to distribution of the software without specific, written
  72. X * prior permission.
  73. X *
  74. X */
  75. X
  76. X/*
  77. X * MODIFICATION HISTORY
  78. X *
  79. X * 002 -- Jordan Hubbard, Ardent Computer
  80. X *   Modifications for addition contexts.
  81. X */
  82. X
  83. X#include "X11/Xlib.h"
  84. X#include "awm.h"
  85. X
  86. Xvoid grab_pointer()
  87. X{
  88. X     Entry("grab_pointer")
  89. X
  90. X     if (XGrabPointer( dpy, RootWindow(dpy, scr),
  91. X              TRUE, EVENTMASK, GrabModeAsync,
  92. X              GrabModeAsync, None,
  93. X              ArrowCrossCursor, CurrentTime )
  94. X     != GrabSuccess )
  95. X      fprintf(stderr, "awm (grab_pointer): Can't grab the mouse.");
  96. X      Leave_void
  97. X}
  98. X
  99. Xvoid ungrab_pointer()
  100. X{
  101. X     Entry("ungrab_pointer")
  102. X
  103. X     XUngrabPointer(dpy, CurrentTime);
  104. X     Leave_void
  105. X}
  106. END_OF_awm/Grab.c
  107. if test 1435 -ne `wc -c <awm/Grab.c`; then
  108.     echo shar: \"awm/Grab.c\" unpacked with wrong size!
  109. fi
  110. # end of overwriting check
  111. fi
  112. if test -f awm/MENUS -a "${1}" != "-c" ; then 
  113.   echo shar: Will not over-write existing file \"awm/MENUS\"
  114. else
  115. echo shar: Extracting \"awm/MENUS\" \(2087 characters\)
  116. sed "s/^X//" >awm/MENUS <<'END_OF_awm/MENUS'
  117. XThe menu package you'll find in this release is derived from the RTL
  118. Xmenu package, version 2.0. RTL is currently at revision level 3, which
  119. Xno doubt fixes many of the bugs in version 2, but I cannot easily update 
  120. Xto it. Here's why:
  121. X
  122. XThe RTL menus, as they come "out of the box" give you the ability
  123. Xto create hierarchical walking menus. Each pane is in a fixed font
  124. Xand can have, in addition to text, a check mark (denoting some boolean
  125. Xcondition), an arrow (denoting an adjacent pull-right menu) or grey-stippled
  126. Xtext (denoting a disabled item). This was almost ideal for my purposes
  127. Xsince I needed checkmarks for boolean variables and arrows for pull-right
  128. Xmenus (not to mention the pull-right menus themselves). However, since
  129. Xawm tries hard to present a pictoral interface (with gadget boxes and
  130. Xthe like), it was necessary to make modifications to the menu package
  131. Xto support:
  132. X
  133. Xo Arbitrary pixmaps in menus panes, rather than just text.
  134. X
  135. Xo A "bold" font for panes that is used for menu titles (which users
  136. X  of uwm, awm's predecessor, had come to expect).
  137. X
  138. Xo The removal of the "all menu panes must be the same height" restriction
  139. X  to accomodate the two features mentioned above.
  140. X
  141. X
  142. XThere were also a number of internel changes, such as the removal of
  143. Xthe AssocTable code that forced a dependence on the X10 compatability
  144. Xlibrary. The positioning of the pointer within windows and the positioning
  145. Xof the pull-right menus themselves was also changed somewhat, since
  146. Xusing the menu package from a window manager required that the menu
  147. Xpackage be a little less exacting about things and give the user more
  148. Xroom for error.
  149. X
  150. XFinally, there were a few changes made for the window manager itself,
  151. Xsuch as support for the "AutoSelect" mode people had come to know
  152. Xand love(?) from uwm.
  153. X
  154. X
  155. XIf anyone feels ambitious enough to reverse-engineer these changes into
  156. XRTL's version 3 package, or to author a totally new menu package with
  157. Xthe features I need, I'll be more than happy to adopt it. In the mean
  158. Xtime, I have other issues which are, unfortunately, more pressing.
  159. X
  160. X
  161. X                    Jordan Hubbard
  162. END_OF_awm/MENUS
  163. if test 2087 -ne `wc -c <awm/MENUS`; then
  164.     echo shar: \"awm/MENUS\" unpacked with wrong size!
  165. fi
  166. # end of overwriting check
  167. fi
  168. if test ! -d awm/bitmaps ; then
  169.     echo shar: Creating directory \"awm/bitmaps\"
  170.     mkdir awm/bitmaps
  171. fi
  172. if test -f awm/bitmaps/README -a "${1}" != "-c" ; then 
  173.   echo shar: Will not over-write existing file \"awm/bitmaps/README\"
  174. else
  175. echo shar: Extracting \"awm/bitmaps/README\" \(545 characters\)
  176. sed "s/^X//" >awm/bitmaps/README <<'END_OF_awm/bitmaps/README'
  177. XHere are a few contributed bitmaps (as well as some of my own) that
  178. Xmight be useful to people designing interfaces with awm. As noted
  179. Xin the man page, care should be taken when constructing menu panes
  180. Xwith these as they are not all the same size. Your contributions
  181. Xto this collections are welcomed.
  182. X
  183. XIt should be noted that hackers don't usually make very good artists.
  184. XIf someone more artistically inclined (and willing to work within the
  185. Xlimits of a 16x16 or 32x32 frame) is interested in adding to this
  186. Xcollection, please do!
  187. X
  188. X                    - Jordan
  189. END_OF_awm/bitmaps/README
  190. if test 545 -ne `wc -c <awm/bitmaps/README`; then
  191.     echo shar: \"awm/bitmaps/README\" unpacked with wrong size!
  192. fi
  193. # end of overwriting check
  194. fi
  195. if test -f awm/bitmaps/blank.bm -a "${1}" != "-c" ; then 
  196.   echo shar: Will not over-write existing file \"awm/bitmaps/blank.bm\"
  197. else
  198. echo shar: Extracting \"awm/bitmaps/blank.bm\" \(278 characters\)
  199. sed "s/^X//" >awm/bitmaps/blank.bm <<'END_OF_awm/bitmaps/blank.bm'
  200. X#define blank_width 16
  201. X#define blank_height 16
  202. Xstatic char blank_bits[] = {
  203. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  204. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  205. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  206. END_OF_awm/bitmaps/blank.bm
  207. if test 278 -ne `wc -c <awm/bitmaps/blank.bm`; then
  208.     echo shar: \"awm/bitmaps/blank.bm\" unpacked with wrong size!
  209. fi
  210. # end of overwriting check
  211. fi
  212. if test -f awm/bitmaps/destroy.bm -a "${1}" != "-c" ; then 
  213.   echo shar: Will not over-write existing file \"awm/bitmaps/destroy.bm\"
  214. else
  215. echo shar: Extracting \"awm/bitmaps/destroy.bm\" \(284 characters\)
  216. sed "s/^X//" >awm/bitmaps/destroy.bm <<'END_OF_awm/bitmaps/destroy.bm'
  217. X#define destroy_width 16
  218. X#define destroy_height 16
  219. Xstatic char destroy_bits[] = {
  220. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0xe0, 0x7f,
  221. X   0x20, 0x02, 0xf0, 0x01, 0x78, 0x00, 0x1c, 0x00, 0x1c, 0x00, 0x1c, 0x00,
  222. X   0x1c, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00};
  223. END_OF_awm/bitmaps/destroy.bm
  224. if test 284 -ne `wc -c <awm/bitmaps/destroy.bm`; then
  225.     echo shar: \"awm/bitmaps/destroy.bm\" unpacked with wrong size!
  226. fi
  227. # end of overwriting check
  228. fi
  229. if test -f awm/bitmaps/die.bm -a "${1}" != "-c" ; then 
  230.   echo shar: Will not over-write existing file \"awm/bitmaps/die.bm\"
  231. else
  232. echo shar: Extracting \"awm/bitmaps/die.bm\" \(260 characters\)
  233. sed "s/^X//" >awm/bitmaps/die.bm <<'END_OF_awm/bitmaps/die.bm'
  234. X#define die_width 15
  235. X#define die_height 15
  236. Xstatic char die_bits[] = {
  237. X   0x00, 0x00, 0x2e, 0x3d, 0x22, 0x15, 0xc2, 0x14, 0xc6, 0x14, 0x22, 0x15,
  238. X   0x22, 0x15, 0x2e, 0x15, 0x00, 0x00, 0x00, 0x02, 0x00, 0x0c, 0xfe, 0x3f,
  239. X   0xfe, 0x3f, 0x00, 0x0c, 0x00, 0x02};
  240. END_OF_awm/bitmaps/die.bm
  241. if test 260 -ne `wc -c <awm/bitmaps/die.bm`; then
  242.     echo shar: \"awm/bitmaps/die.bm\" unpacked with wrong size!
  243. fi
  244. # end of overwriting check
  245. fi
  246. if test -f awm/bitmaps/foc.bm -a "${1}" != "-c" ; then 
  247.   echo shar: Will not over-write existing file \"awm/bitmaps/foc.bm\"
  248. else
  249. echo shar: Extracting \"awm/bitmaps/foc.bm\" \(260 characters\)
  250. sed "s/^X//" >awm/bitmaps/foc.bm <<'END_OF_awm/bitmaps/foc.bm'
  251. X#define foc_width 15
  252. X#define foc_height 15
  253. Xstatic char foc_bits[] = {
  254. X   0x00, 0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x80, 0xfc, 0x9f, 0x54, 0x95,
  255. X   0xfc, 0x9f, 0x54, 0x95, 0xfc, 0x9f, 0x04, 0x90, 0xfc, 0x9f, 0x00, 0x80,
  256. X   0x00, 0x80, 0x00, 0x80, 0x00, 0x80};
  257. END_OF_awm/bitmaps/foc.bm
  258. if test 260 -ne `wc -c <awm/bitmaps/foc.bm`; then
  259.     echo shar: \"awm/bitmaps/foc.bm\" unpacked with wrong size!
  260. fi
  261. # end of overwriting check
  262. fi
  263. if test -f awm/bitmaps/hilite.bm -a "${1}" != "-c" ; then 
  264.   echo shar: Will not over-write existing file \"awm/bitmaps/hilite.bm\"
  265. else
  266. echo shar: Extracting \"awm/bitmaps/hilite.bm\" \(2202 characters\)
  267. sed "s/^X//" >awm/bitmaps/hilite.bm <<'END_OF_awm/bitmaps/hilite.bm'
  268. X/*****************************************************************************/
  269. X/**       Copyright 1988 by Evans & Sutherland Computer Corporation,        **/
  270. X/**                          Salt Lake City, Utah                           **/
  271. X/**                                                                         **/
  272. X/**                           All Rights Reserved                           **/
  273. X/**                                                                         **/
  274. X/**    Permission to use, copy, modify, and distribute this software and    **/
  275. X/**    its documentation  for  any  purpose  and  without  fee is hereby    **/
  276. X/**    granted, provided that the above copyright notice appear  in  all    **/
  277. X/**    copies and that both  that  copyright  notice  and  this  permis-    **/
  278. X/**    sion  notice appear in supporting  documentation,  and  that  the    **/
  279. X/**    name  of Evans & Sutherland  not be used in advertising or publi-    **/
  280. X/**    city pertaining to distribution  of the software without  specif-    **/
  281. X/**    ic, written prior permission.                                        **/
  282. X/**                                                                         **/
  283. X/**    EVANS  & SUTHERLAND  DISCLAIMS  ALL  WARRANTIES  WITH  REGARD  TO    **/
  284. X/**    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILI-    **/
  285. X/**    TY AND FITNESS, IN NO EVENT SHALL EVANS &  SUTHERLAND  BE  LIABLE    **/
  286. X/**    FOR  ANY  SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY  DAM-    **/
  287. X/**    AGES  WHATSOEVER RESULTING FROM  LOSS OF USE,  DATA  OR  PROFITS,    **/
  288. X/**    WHETHER   IN  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS    **/
  289. X/**    ACTION, ARISING OUT OF OR IN  CONNECTION  WITH  THE  USE  OR PER-    **/
  290. X/**    FORMANCE OF THIS SOFTWARE.                                           **/
  291. X/*****************************************************************************/
  292. X
  293. X#define hilite_width 16
  294. X#define hilite_height 16
  295. Xstatic char hilite_bits[] = {
  296. X   0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00,
  297. X   0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00,
  298. X   0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  299. END_OF_awm/bitmaps/hilite.bm
  300. if test 2202 -ne `wc -c <awm/bitmaps/hilite.bm`; then
  301.     echo shar: \"awm/bitmaps/hilite.bm\" unpacked with wrong size!
  302. fi
  303. # end of overwriting check
  304. fi
  305. if test -f awm/bitmaps/ic.bm -a "${1}" != "-c" ; then 
  306.   echo shar: Will not over-write existing file \"awm/bitmaps/ic.bm\"
  307. else
  308. echo shar: Extracting \"awm/bitmaps/ic.bm\" \(257 characters\)
  309. sed "s/^X//" >awm/bitmaps/ic.bm <<'END_OF_awm/bitmaps/ic.bm'
  310. X#define ic_width 15
  311. X#define ic_height 15
  312. Xstatic char ic_bits[] = {
  313. X   0x00, 0x80, 0x00, 0x80, 0x7c, 0x9f, 0x7c, 0x9f, 0x7c, 0x9f, 0x7c, 0x9f,
  314. X   0x7c, 0x9f, 0x00, 0x80, 0x7c, 0x9f, 0x7c, 0x9f, 0x7c, 0x9f, 0x7c, 0x9f,
  315. X   0x7c, 0x9f, 0x00, 0x80, 0x00, 0x80};
  316. END_OF_awm/bitmaps/ic.bm
  317. if test 257 -ne `wc -c <awm/bitmaps/ic.bm`; then
  318.     echo shar: \"awm/bitmaps/ic.bm\" unpacked with wrong size!
  319. fi
  320. # end of overwriting check
  321. fi
  322. if test -f awm/bitmaps/mac_close.bm -a "${1}" != "-c" ; then 
  323.   echo shar: Will not over-write existing file \"awm/bitmaps/mac_close.bm\"
  324. else
  325. echo shar: Extracting \"awm/bitmaps/mac_close.bm\" \(215 characters\)
  326. sed "s/^X//" >awm/bitmaps/mac_close.bm <<'END_OF_awm/bitmaps/mac_close.bm'
  327. X#define mac_close_width 10
  328. X#define mac_close_height 10
  329. Xstatic char mac_close_bits[] = {
  330. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  331. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  332. END_OF_awm/bitmaps/mac_close.bm
  333. if test 215 -ne `wc -c <awm/bitmaps/mac_close.bm`; then
  334.     echo shar: \"awm/bitmaps/mac_close.bm\" unpacked with wrong size!
  335. fi
  336. # end of overwriting check
  337. fi
  338. if test -f awm/bitmaps/raise.bm -a "${1}" != "-c" ; then 
  339.   echo shar: Will not over-write existing file \"awm/bitmaps/raise.bm\"
  340. else
  341. echo shar: Extracting \"awm/bitmaps/raise.bm\" \(269 characters\)
  342. sed "s/^X//" >awm/bitmaps/raise.bm <<'END_OF_awm/bitmaps/raise.bm'
  343. X#define g1_width 16
  344. X#define g1_height 16
  345. Xstatic char g1_bits[] = {
  346. X   0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0xc0, 0x01, 0xe0, 0x03, 0x80, 0x00,
  347. X   0x80, 0x00, 0x9e, 0x3c, 0x9e, 0x3c, 0x80, 0x00, 0x80, 0x00, 0xe0, 0x03,
  348. X   0xc0, 0x01, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00};
  349. END_OF_awm/bitmaps/raise.bm
  350. if test 269 -ne `wc -c <awm/bitmaps/raise.bm`; then
  351.     echo shar: \"awm/bitmaps/raise.bm\" unpacked with wrong size!
  352. fi
  353. # end of overwriting check
  354. fi
  355. if test -f awm/bitmaps/res.bm -a "${1}" != "-c" ; then 
  356.   echo shar: Will not over-write existing file \"awm/bitmaps/res.bm\"
  357. else
  358. echo shar: Extracting \"awm/bitmaps/res.bm\" \(260 characters\)
  359. sed "s/^X//" >awm/bitmaps/res.bm <<'END_OF_awm/bitmaps/res.bm'
  360. X#define res_width 15
  361. X#define res_height 15
  362. Xstatic char res_bits[] = {
  363. X   0x00, 0x80, 0xfe, 0xbf, 0x00, 0xa0, 0x00, 0xa0, 0xaa, 0xa6, 0x00, 0xa4,
  364. X   0x00, 0xa0, 0x00, 0xa4, 0x7e, 0xa0, 0x40, 0xa4, 0x40, 0xa0, 0x40, 0xa4,
  365. X   0x40, 0xa0, 0x40, 0xa4, 0x00, 0x80};
  366. END_OF_awm/bitmaps/res.bm
  367. if test 260 -ne `wc -c <awm/bitmaps/res.bm`; then
  368.     echo shar: \"awm/bitmaps/res.bm\" unpacked with wrong size!
  369. fi
  370. # end of overwriting check
  371. fi
  372. if test -f awm/bitmaps/resize.bm -a "${1}" != "-c" ; then 
  373.   echo shar: Will not over-write existing file \"awm/bitmaps/resize.bm\"
  374. else
  375. echo shar: Extracting \"awm/bitmaps/resize.bm\" \(281 characters\)
  376. sed "s/^X//" >awm/bitmaps/resize.bm <<'END_OF_awm/bitmaps/resize.bm'
  377. X#define resize_width 16
  378. X#define resize_height 16
  379. Xstatic char resize_bits[] = {
  380. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x3c, 0x00, 0x38, 0x00, 0x38, 0x00, 0x24,
  381. X   0x00, 0x02, 0x00, 0x01, 0x80, 0x00, 0x40, 0x00, 0x20, 0x00, 0x12, 0x00,
  382. X   0x0e, 0x00, 0x0e, 0x00, 0x1e, 0x00, 0x00, 0x00};
  383. END_OF_awm/bitmaps/resize.bm
  384. if test 281 -ne `wc -c <awm/bitmaps/resize.bm`; then
  385.     echo shar: \"awm/bitmaps/resize.bm\" unpacked with wrong size!
  386. fi
  387. # end of overwriting check
  388. fi
  389. if test -f awm/bitmaps/titlehilite.bm -a "${1}" != "-c" ; then 
  390.   echo shar: Will not over-write existing file \"awm/bitmaps/titlehilite.bm\"
  391. else
  392. echo shar: Extracting \"awm/bitmaps/titlehilite.bm\" \(290 characters\)
  393. sed "s/^X//" >awm/bitmaps/titlehilite.bm <<'END_OF_awm/bitmaps/titlehilite.bm'
  394. X#define titlebold_width 16
  395. X#define titlebold_height 16
  396. Xstatic char titlebold_bits[] = {
  397. X   0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00,
  398. X   0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00,
  399. X   0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00};
  400. END_OF_awm/bitmaps/titlehilite.bm
  401. if test 290 -ne `wc -c <awm/bitmaps/titlehilite.bm`; then
  402.     echo shar: \"awm/bitmaps/titlehilite.bm\" unpacked with wrong size!
  403. fi
  404. # end of overwriting check
  405. fi
  406. if test -f awm/bitmaps/twm.focus.bm -a "${1}" != "-c" ; then 
  407.   echo shar: Will not over-write existing file \"awm/bitmaps/twm.focus.bm\"
  408. else
  409. echo shar: Extracting \"awm/bitmaps/twm.focus.bm\" \(2188 characters\)
  410. sed "s/^X//" >awm/bitmaps/twm.focus.bm <<'END_OF_awm/bitmaps/twm.focus.bm'
  411. X
  412. X/*****************************************************************************/
  413. X/**       Copyright 1988 by Evans & Sutherland Computer Corporation,        **/
  414. X/**                          Salt Lake City, Utah                           **/
  415. X/**                                                                         **/
  416. X/**                           All Rights Reserved                           **/
  417. X/**                                                                         **/
  418. X/**    Permission to use, copy, modify, and distribute this software and    **/
  419. X/**    its documentation  for  any  purpose  and  without  fee is hereby    **/
  420. X/**    granted, provided that the above copyright notice appear  in  all    **/
  421. X/**    copies and that both  that  copyright  notice  and  this  permis-    **/
  422. X/**    sion  notice appear in supporting  documentation,  and  that  the    **/
  423. X/**    name  of Evans & Sutherland  not be used in advertising or publi-    **/
  424. X/**    city pertaining to distribution  of the software without  specif-    **/
  425. X/**    ic, written prior permission.                                        **/
  426. X/**                                                                         **/
  427. X/**    EVANS  & SUTHERLAND  DISCLAIMS  ALL  WARRANTIES  WITH  REGARD  TO    **/
  428. X/**    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILI-    **/
  429. X/**    TY AND FITNESS, IN NO EVENT SHALL EVANS &  SUTHERLAND  BE  LIABLE    **/
  430. X/**    FOR  ANY  SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY  DAM-    **/
  431. X/**    AGES  WHATSOEVER RESULTING FROM  LOSS OF USE,  DATA  OR  PROFITS,    **/
  432. X/**    WHETHER   IN  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS    **/
  433. X/**    ACTION, ARISING OUT OF OR IN  CONNECTION  WITH  THE  USE  OR PER-    **/
  434. X/**    FORMANCE OF THIS SOFTWARE.                                           **/
  435. X/*****************************************************************************/
  436. X
  437. X#define focus_width 16
  438. X#define focus_height 15
  439. Xstatic char focus_bits[] = {
  440. X   0xff, 0x7f, 0x01, 0x40, 0x01, 0x40, 0x01, 0x40, 0xfd, 0x5f, 0x55, 0x55,
  441. X   0xfd, 0x5f, 0x55, 0x55, 0xfd, 0x5f, 0x05, 0x50, 0xfd, 0x5f, 0x01, 0x40,
  442. X   0x01, 0x40, 0x01, 0x40, 0xff, 0x7f};
  443. END_OF_awm/bitmaps/twm.focus.bm
  444. if test 2188 -ne `wc -c <awm/bitmaps/twm.focus.bm`; then
  445.     echo shar: \"awm/bitmaps/twm.focus.bm\" unpacked with wrong size!
  446. fi
  447. # end of overwriting check
  448. fi
  449. if test -f awm/bitmaps/twm.gray.bm -a "${1}" != "-c" ; then 
  450.   echo shar: Will not over-write existing file \"awm/bitmaps/twm.gray.bm\"
  451. else
  452. echo shar: Extracting \"awm/bitmaps/twm.gray.bm\" \(312 characters\)
  453. sed "s/^X//" >awm/bitmaps/twm.gray.bm <<'END_OF_awm/bitmaps/twm.gray.bm'
  454. X/* @(#)gray.ic    X10/6.6    11/3/86 */
  455. X#define gray_width 16
  456. X#define gray_height 16
  457. Xstatic char gray_bits[] = {
  458. X   0x55, 0x55, 0xaa, 0xaa, 0x55, 0x55, 0xaa, 0xaa,
  459. X   0x55, 0x55, 0xaa, 0xaa, 0x55, 0x55, 0xaa, 0xaa,
  460. X   0x55, 0x55, 0xaa, 0xaa, 0x55, 0x55, 0xaa, 0xaa,
  461. X   0x55, 0x55, 0xaa, 0xaa, 0x55, 0x55, 0xaa, 0xaa};
  462. END_OF_awm/bitmaps/twm.gray.bm
  463. if test 312 -ne `wc -c <awm/bitmaps/twm.gray.bm`; then
  464.     echo shar: \"awm/bitmaps/twm.gray.bm\" unpacked with wrong size!
  465. fi
  466. # end of overwriting check
  467. fi
  468. if test -f awm/bitmaps/twm.hilite.bm -a "${1}" != "-c" ; then 
  469.   echo shar: Will not over-write existing file \"awm/bitmaps/twm.hilite.bm\"
  470. else
  471. echo shar: Extracting \"awm/bitmaps/twm.hilite.bm\" \(2202 characters\)
  472. sed "s/^X//" >awm/bitmaps/twm.hilite.bm <<'END_OF_awm/bitmaps/twm.hilite.bm'
  473. X/*****************************************************************************/
  474. X/**       Copyright 1988 by Evans & Sutherland Computer Corporation,        **/
  475. X/**                          Salt Lake City, Utah                           **/
  476. X/**                                                                         **/
  477. X/**                           All Rights Reserved                           **/
  478. X/**                                                                         **/
  479. X/**    Permission to use, copy, modify, and distribute this software and    **/
  480. X/**    its documentation  for  any  purpose  and  without  fee is hereby    **/
  481. X/**    granted, provided that the above copyright notice appear  in  all    **/
  482. X/**    copies and that both  that  copyright  notice  and  this  permis-    **/
  483. X/**    sion  notice appear in supporting  documentation,  and  that  the    **/
  484. X/**    name  of Evans & Sutherland  not be used in advertising or publi-    **/
  485. X/**    city pertaining to distribution  of the software without  specif-    **/
  486. X/**    ic, written prior permission.                                        **/
  487. X/**                                                                         **/
  488. X/**    EVANS  & SUTHERLAND  DISCLAIMS  ALL  WARRANTIES  WITH  REGARD  TO    **/
  489. X/**    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILI-    **/
  490. X/**    TY AND FITNESS, IN NO EVENT SHALL EVANS &  SUTHERLAND  BE  LIABLE    **/
  491. X/**    FOR  ANY  SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY  DAM-    **/
  492. X/**    AGES  WHATSOEVER RESULTING FROM  LOSS OF USE,  DATA  OR  PROFITS,    **/
  493. X/**    WHETHER   IN  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS    **/
  494. X/**    ACTION, ARISING OUT OF OR IN  CONNECTION  WITH  THE  USE  OR PER-    **/
  495. X/**    FORMANCE OF THIS SOFTWARE.                                           **/
  496. X/*****************************************************************************/
  497. X
  498. X#define hilite_width 16
  499. X#define hilite_height 16
  500. Xstatic char hilite_bits[] = {
  501. X   0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00,
  502. X   0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00,
  503. X   0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  504. END_OF_awm/bitmaps/twm.hilite.bm
  505. if test 2202 -ne `wc -c <awm/bitmaps/twm.hilite.bm`; then
  506.     echo shar: \"awm/bitmaps/twm.hilite.bm\" unpacked with wrong size!
  507. fi
  508. # end of overwriting check
  509. fi
  510. if test -f awm/bitmaps/twm.iconify.bm -a "${1}" != "-c" ; then 
  511.   echo shar: Will not over-write existing file \"awm/bitmaps/twm.iconify.bm\"
  512. else
  513. echo shar: Extracting \"awm/bitmaps/twm.iconify.bm\" \(2194 characters\)
  514. sed "s/^X//" >awm/bitmaps/twm.iconify.bm <<'END_OF_awm/bitmaps/twm.iconify.bm'
  515. X
  516. X/*****************************************************************************/
  517. X/**       Copyright 1988 by Evans & Sutherland Computer Corporation,        **/
  518. X/**                          Salt Lake City, Utah                           **/
  519. X/**                                                                         **/
  520. X/**                           All Rights Reserved                           **/
  521. X/**                                                                         **/
  522. X/**    Permission to use, copy, modify, and distribute this software and    **/
  523. X/**    its documentation  for  any  purpose  and  without  fee is hereby    **/
  524. X/**    granted, provided that the above copyright notice appear  in  all    **/
  525. X/**    copies and that both  that  copyright  notice  and  this  permis-    **/
  526. X/**    sion  notice appear in supporting  documentation,  and  that  the    **/
  527. X/**    name  of Evans & Sutherland  not be used in advertising or publi-    **/
  528. X/**    city pertaining to distribution  of the software without  specif-    **/
  529. X/**    ic, written prior permission.                                        **/
  530. X/**                                                                         **/
  531. X/**    EVANS  & SUTHERLAND  DISCLAIMS  ALL  WARRANTIES  WITH  REGARD  TO    **/
  532. X/**    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILI-    **/
  533. X/**    TY AND FITNESS, IN NO EVENT SHALL EVANS &  SUTHERLAND  BE  LIABLE    **/
  534. X/**    FOR  ANY  SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY  DAM-    **/
  535. X/**    AGES  WHATSOEVER RESULTING FROM  LOSS OF USE,  DATA  OR  PROFITS,    **/
  536. X/**    WHETHER   IN  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS    **/
  537. X/**    ACTION, ARISING OUT OF OR IN  CONNECTION  WITH  THE  USE  OR PER-    **/
  538. X/**    FORMANCE OF THIS SOFTWARE.                                           **/
  539. X/*****************************************************************************/
  540. X
  541. X#define iconify_width 16
  542. X#define iconify_height 15
  543. Xstatic char iconify_bits[] = {
  544. X   0xff, 0x7f, 0x01, 0x40, 0x7d, 0x5f, 0x7d, 0x5f, 0x7d, 0x5f, 0x7d, 0x5f,
  545. X   0x7d, 0x5f, 0x01, 0x40, 0x7d, 0x5f, 0x7d, 0x5f, 0x7d, 0x5f, 0x7d, 0x5f,
  546. X   0x7d, 0x5f, 0x01, 0x40, 0xff, 0x7f};
  547. END_OF_awm/bitmaps/twm.iconify.bm
  548. if test 2194 -ne `wc -c <awm/bitmaps/twm.iconify.bm`; then
  549.     echo shar: \"awm/bitmaps/twm.iconify.bm\" unpacked with wrong size!
  550. fi
  551. # end of overwriting check
  552. fi
  553. if test -f awm/bitmaps/twm.pull.bm -a "${1}" != "-c" ; then 
  554.   echo shar: Will not over-write existing file \"awm/bitmaps/twm.pull.bm\"
  555. else
  556. echo shar: Extracting \"awm/bitmaps/twm.pull.bm\" \(2197 characters\)
  557. sed "s/^X//" >awm/bitmaps/twm.pull.bm <<'END_OF_awm/bitmaps/twm.pull.bm'
  558. X
  559. X/*****************************************************************************/
  560. X/**       Copyright 1988 by Evans & Sutherland Computer Corporation,        **/
  561. X/**                          Salt Lake City, Utah                           **/
  562. X/**                                                                         **/
  563. X/**                           All Rights Reserved                           **/
  564. X/**                                                                         **/
  565. X/**    Permission to use, copy, modify, and distribute this software and    **/
  566. X/**    its documentation  for  any  purpose  and  without  fee is hereby    **/
  567. X/**    granted, provided that the above copyright notice appear  in  all    **/
  568. X/**    copies and that both  that  copyright  notice  and  this  permis-    **/
  569. X/**    sion  notice appear in supporting  documentation,  and  that  the    **/
  570. X/**    name  of Evans & Sutherland  not be used in advertising or publi-    **/
  571. X/**    city pertaining to distribution  of the software without  specif-    **/
  572. X/**    ic, written prior permission.                                        **/
  573. X/**                                                                         **/
  574. X/**    EVANS  & SUTHERLAND  DISCLAIMS  ALL  WARRANTIES  WITH  REGARD  TO    **/
  575. X/**    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILI-    **/
  576. X/**    TY AND FITNESS, IN NO EVENT SHALL EVANS &  SUTHERLAND  BE  LIABLE    **/
  577. X/**    FOR  ANY  SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY  DAM-    **/
  578. X/**    AGES  WHATSOEVER RESULTING FROM  LOSS OF USE,  DATA  OR  PROFITS,    **/
  579. X/**    WHETHER   IN  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS    **/
  580. X/**    ACTION, ARISING OUT OF OR IN  CONNECTION  WITH  THE  USE  OR PER-    **/
  581. X/**    FORMANCE OF THIS SOFTWARE.                                           **/
  582. X/*****************************************************************************/
  583. X
  584. X#define pull_width 16
  585. X#define pull_height 16
  586. Xstatic char pull_bits[] = {
  587. X   0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x0c, 0x00, 0x1c, 0xff, 0x3f,
  588. X   0xff, 0x7f, 0xff, 0xff, 0xff, 0x7f, 0xff, 0x3f, 0x00, 0x1c, 0x00, 0x0c,
  589. X   0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  590. END_OF_awm/bitmaps/twm.pull.bm
  591. if test 2197 -ne `wc -c <awm/bitmaps/twm.pull.bm`; then
  592.     echo shar: \"awm/bitmaps/twm.pull.bm\" unpacked with wrong size!
  593. fi
  594. # end of overwriting check
  595. fi
  596. if test -f awm/bitmaps/twm.resize.bm -a "${1}" != "-c" ; then 
  597.   echo shar: Will not over-write existing file \"awm/bitmaps/twm.resize.bm\"
  598. else
  599. echo shar: Extracting \"awm/bitmaps/twm.resize.bm\" \(2191 characters\)
  600. sed "s/^X//" >awm/bitmaps/twm.resize.bm <<'END_OF_awm/bitmaps/twm.resize.bm'
  601. X
  602. X/*****************************************************************************/
  603. X/**       Copyright 1988 by Evans & Sutherland Computer Corporation,        **/
  604. X/**                          Salt Lake City, Utah                           **/
  605. X/**                                                                         **/
  606. X/**                           All Rights Reserved                           **/
  607. X/**                                                                         **/
  608. X/**    Permission to use, copy, modify, and distribute this software and    **/
  609. X/**    its documentation  for  any  purpose  and  without  fee is hereby    **/
  610. X/**    granted, provided that the above copyright notice appear  in  all    **/
  611. X/**    copies and that both  that  copyright  notice  and  this  permis-    **/
  612. X/**    sion  notice appear in supporting  documentation,  and  that  the    **/
  613. X/**    name  of Evans & Sutherland  not be used in advertising or publi-    **/
  614. X/**    city pertaining to distribution  of the software without  specif-    **/
  615. X/**    ic, written prior permission.                                        **/
  616. X/**                                                                         **/
  617. X/**    EVANS  & SUTHERLAND  DISCLAIMS  ALL  WARRANTIES  WITH  REGARD  TO    **/
  618. X/**    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILI-    **/
  619. X/**    TY AND FITNESS, IN NO EVENT SHALL EVANS &  SUTHERLAND  BE  LIABLE    **/
  620. X/**    FOR  ANY  SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY  DAM-    **/
  621. X/**    AGES  WHATSOEVER RESULTING FROM  LOSS OF USE,  DATA  OR  PROFITS,    **/
  622. X/**    WHETHER   IN  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS    **/
  623. X/**    ACTION, ARISING OUT OF OR IN  CONNECTION  WITH  THE  USE  OR PER-    **/
  624. X/**    FORMANCE OF THIS SOFTWARE.                                           **/
  625. X/*****************************************************************************/
  626. X
  627. X#define resize_width 16
  628. X#define resize_height 15
  629. Xstatic char resize_bits[] = {
  630. X   0xff, 0x7f, 0x01, 0x40, 0x01, 0x40, 0x01, 0x40, 0xff, 0x47, 0x01, 0x44,
  631. X   0x01, 0x44, 0x01, 0x44, 0x7f, 0x44, 0x41, 0x44, 0x41, 0x44, 0x41, 0x44,
  632. X   0x41, 0x44, 0x41, 0x44, 0xff, 0x7f};
  633. END_OF_awm/bitmaps/twm.resize.bm
  634. if test 2191 -ne `wc -c <awm/bitmaps/twm.resize.bm`; then
  635.     echo shar: \"awm/bitmaps/twm.resize.bm\" unpacked with wrong size!
  636. fi
  637. # end of overwriting check
  638. fi
  639. if test -f awm/def.awmrc -a "${1}" != "-c" ; then 
  640.   echo shar: Will not over-write existing file \"awm/def.awmrc\"
  641. else
  642. echo shar: Extracting \"awm/def.awmrc\" \(1960 characters\)
  643. sed "s/^X//" >awm/def.awmrc <<'END_OF_awm/def.awmrc'
  644. X# $Source $
  645. X# $Author $
  646. X# $Header $
  647. X# Copyright (c) 1987 by the Massachusetts Institute of Technology.
  648. X#
  649. X# This is a startup file for uwm that produces an xwm lookalike,
  650. X# but adds two useful menus.  It is patterned on the public
  651. X# distribution ../lib/X/uwm/jg.uwmrc file by Jim Gettys.
  652. X#
  653. Xresetbindings
  654. Xresetmenus
  655. Xresetgadgets
  656. X
  657. X# FUNCTION    KEYS    CONTEXT        MOUSE BUTTON ACTIONS
  658. Xf.newiconify=    meta    :window|icon:    delta left
  659. Xf.raise=    meta    :window|icon:    delta left
  660. Xf.lower=    meta    :window|icon:    left up
  661. Xf.raise=    meta    :window:    middle down
  662. Xf.resize=    meta    :window:    delta middle
  663. Xf.iconify=    meta    :icon:        middle up
  664. Xf.raise=    meta    :window|icon:    right down
  665. Xf.move=        meta    :window|icon:    delta right
  666. Xf.circledown=    meta    :root:        left down
  667. Xf.circleup=    meta    :root:        right down
  668. Xf.circledown=    m|s    ::        left down
  669. Xf.menu=            :root:        middle down    : "WindowOps"
  670. Xf.menu=        m|s    ::        middle down    : "WindowOps"
  671. Xf.menu=        m|s    :root:        left down    : "Preferences"
  672. Xf.menu=        m|s    ::        left down    : "Preferences"
  673. Xf.circleup=    m|s    ::        right down
  674. Xf.iconify=    m|c    :window|icon:    left down
  675. Xf.newiconify=    m|l    :window|icon:    left down
  676. Xf.raise=    m|l    :window|icon:    left up
  677. Xf.pushright=    m|l    :window|icon:    right down
  678. Xf.pushleft=    m|c    :window|icon:    right down
  679. Xf.pushup=    m|l    :window|icon:    middle down
  680. Xf.pushdown=    m|c    :window|icon:    middle down
  681. X
  682. Xmenu = "Preferences" {
  683. XBell Loud:    !"xset b 7&"
  684. XBell Normal:    !"xset b 3&"
  685. XBell Off:    !"xset b off&"
  686. XClick Loud:    !"xset c 8&"
  687. XClick Soft:    !"xset c on&"
  688. XClick Off:    !"xset c off&"
  689. XLock On:    !"xset l on&"
  690. XLock Off:    !"xset l off&"
  691. XMouse Fast:    !"xset m 4 2&"
  692. XMouse Normal:    !"xset m 2 5&"
  693. XMouse Slow:    !"xset m 1 1&"
  694. X}
  695. X
  696. Xmenu = "WindowOps" {
  697. XPreferences:    f.menu:    "Preferences"
  698. XNew Window:    !"xterm&"
  699. XRefreshScreen:    f.refresh
  700. XRedraw:        f.redraw
  701. XMove:        f.move
  702. XResize:        f.resize
  703. XLower:        f.lower
  704. XRaise:        f.raise
  705. XCircUp:        f.circleup
  706. XCircDown:    f.circledown
  707. XAutoIconify:    f.iconify
  708. XLowerIconify:    f.newiconify
  709. XNewIconify:    f.newiconify
  710. XFocus:        f.focus
  711. XFreeze:        f.pause
  712. XUnFreeze:    f.continue
  713. XRestart:    f.restart
  714. X}
  715. END_OF_awm/def.awmrc
  716. if test 1960 -ne `wc -c <awm/def.awmrc`; then
  717.     echo shar: \"awm/def.awmrc\" unpacked with wrong size!
  718. fi
  719. # end of overwriting check
  720. fi
  721. if test ! -d awm/menus ; then
  722.     echo shar: Creating directory \"awm/menus\"
  723.     mkdir awm/menus
  724. fi
  725. if test -f awm/menus/Makefile -a "${1}" != "-c" ; then 
  726.   echo shar: Will not over-write existing file \"awm/menus/Makefile\"
  727. else
  728. echo shar: Extracting \"awm/menus/Makefile\" \(1635 characters\)
  729. sed "s/^X//" >awm/menus/Makefile <<'END_OF_awm/menus/Makefile'
  730. X# makefile for example menu program
  731. X# This should be generated by imake, but it's not.
  732. X# sometime "soon". In the meantime, change the directories
  733. X# to suite your system.
  734. X
  735. X# if using DBUG package, point this to the object files
  736. X# DBUGDIR = 
  737. X
  738. X# Point this to the top of your source tree
  739. XTOP = /usr/src/X.V11R2
  740. X
  741. XOBJS =    rtlmenu.o track_menu.o eventsave.o eventstack.o menu.o
  742. XSRCS =    rtlmenu.c track_menu.c eventsave.c eventstack.c menu.c
  743. XINCS =    menu.h menu.def.h menu.ext.h rtlmenu.h std_defs.h eventstack.h \
  744. X    arrow_icon.h dbug.h gray1.h null_icon.h dbug.h rtlmnu.ext.h \
  745. X    rtlmnu.opt.h
  746. X
  747. X# compiler flags 
  748. XFLAGS = -g $(CFLAGS) -I$(TOP)
  749. X
  750. X# if you want to use the DBUG package (and you have it around), define
  751. X# DBUGFLAG to be empty
  752. XDBUGFLAG = DBUG_OFF
  753. X
  754. Xrtlmenu.a : $(OBJS)
  755. X    rm -f rtlmenu.a
  756. X    ar clq rtlmenu.a $(OBJS)
  757. X    ranlib rtlmenu.a
  758. X
  759. Xrtlmenu.o : rtlmenu.c menu.h menu.def.h menu.ext.h rtlmenu.h std_defs.h
  760. X     $(CC) $(FLAGS) -D$(DBUGFLAG) -c rtlmenu.c
  761. X
  762. Xtrack_menu.o : track_menu.c eventstack.h dbug.h \
  763. X        menu.def.h menu.h menu.ext.h null_icon.h \
  764. X        arrow_icon.h std_defs.h
  765. X     $(CC) $(FLAGS) -D$(DBUGFLAG) -c track_menu.c
  766. X
  767. Xeventsave.o : eventsave.c eventstack.h dbug.h std_defs.h
  768. X     $(CC) $(FLAGS) -D$(DBUGFLAG) -c eventsave.c
  769. X
  770. Xeventstack.o : eventstack.c eventstack.h dbug.h std_defs.h
  771. X     $(CC) $(FLAGS) -D$(DBUGFLAG) -c eventstack.c
  772. X
  773. Xmenu.o : menu.c arrow_icon.h gray1.h menu.def.h menu.h std_defs.h dbug.h
  774. X     $(CC) $(FLAGS)   -D$(DBUGFLAG) -c menu.c
  775. X
  776. Xclean:
  777. X    rm -f *.o *.a core *~ #* 
  778. X
  779. Xnoident:
  780. X    @echo Removing ident lines from menus...
  781. X    @for i in $(SRCS) $(INCS); do \
  782. X    sed -e '/#ident/D' < $$i > /tmp/x.$$i && \
  783. X    mv /tmp/x.$$i $$i ; \
  784. X    done
  785. END_OF_awm/menus/Makefile
  786. if test 1635 -ne `wc -c <awm/menus/Makefile`; then
  787.     echo shar: \"awm/menus/Makefile\" unpacked with wrong size!
  788. fi
  789. # end of overwriting check
  790. fi
  791. if test -f awm/menus/README -a "${1}" != "-c" ; then 
  792.   echo shar: Will not over-write existing file \"awm/menus/README\"
  793. else
  794. echo shar: Extracting \"awm/menus/README\" \(1570 characters\)
  795. sed "s/^X//" >awm/menus/README <<'END_OF_awm/menus/README'
  796. XRTLMenus Version 1.0 Release 2.1
  797. X
  798. XThis menu package was written at Siemens Research and
  799. XTechnologies Laboratory, Princeton, NJ, in the second half 
  800. Xkof 1987.
  801. X
  802. XThe original basis for the source file menu.c was the menu
  803. Xpackage for version X10/6.6 of xterm (misc.c).  We thank the
  804. Xprogrammers who gave us this basis from which to expand.
  805. X
  806. XWe wrote this package to meet the needs of the RTL Tiled
  807. XWindows window manager which is under development here.
  808. XWe have simulated much of the functionality of the SunWindows
  809. XToolkit menus.  The package has been tested only on Suns.
  810. XWe welcome enhancements and changes, and we would appreciate
  811. Xhearing about them.  We'll be glad to accept bug reports, but
  812. Xwe can't support this package beyond our own needs.  We are
  813. Xmaking it available because you 1) may be able to use it,
  814. Xand 2) may learn some tricks from it.
  815. X
  816. XWe found the DBUG C Program Debugging Package by Fred Fish to
  817. Xbe useful in debugging track_menu.c.  The DBUG macros remain,
  818. Xso you can use them to trace the code if you have DBUG
  819. Xavailable.  The Makefile assumes you do NOT have DBUG, and
  820. Xturns it off. 
  821. X
  822. XAdam J. Richter of UC Berkeley wrote an initial version of the
  823. Xmenus while he was here last summer.  Joe Camaratta and Mike
  824. XBerman designed and built the present version.  This work was
  825. Xperformed with the guidance of Ellis Cohen and the assistance
  826. Xof Mark Biggers.
  827. X
  828. XWe thank those who beta-tested the menus; in particular,
  829. Xthanks to George Sherouse and Mark Baushke for their useful
  830. Xsuggestions. 
  831. X
  832. X--Mike Berman
  833. X  berman%siemens@princeton.edu
  834. X  (609)734-6500 x2293
  835. X
  836. END_OF_awm/menus/README
  837. if test 1570 -ne `wc -c <awm/menus/README`; then
  838.     echo shar: \"awm/menus/README\" unpacked with wrong size!
  839. fi
  840. # end of overwriting check
  841. fi
  842. if test -f awm/menus/arrow_icon.h -a "${1}" != "-c" ; then 
  843.   echo shar: Will not over-write existing file \"awm/menus/arrow_icon.h\"
  844. else
  845. echo shar: Extracting \"awm/menus/arrow_icon.h\" \(210 characters\)
  846. sed "s/^X//" >awm/menus/arrow_icon.h <<'END_OF_awm/menus/arrow_icon.h'
  847. X#ident   "%W% %G%"
  848. X
  849. X#define arrow_width 10
  850. X#define arrow_height 9
  851. Xstatic char arrow_bits[] = {
  852. X   0x30, 0x00, 0x60, 0x00, 0xff, 0x00, 0xc0, 0x01, 0x9e, 0x03, 0xc0, 0x01,
  853. X   0xff, 0x00, 0x60, 0x00, 0x30, 0x00};
  854. END_OF_awm/menus/arrow_icon.h
  855. if test 210 -ne `wc -c <awm/menus/arrow_icon.h`; then
  856.     echo shar: \"awm/menus/arrow_icon.h\" unpacked with wrong size!
  857. fi
  858. # end of overwriting check
  859. fi
  860. if test -f awm/menus/eventstack.h -a "${1}" != "-c" ; then 
  861.   echo shar: Will not over-write existing file \"awm/menus/eventstack.h\"
  862. else
  863. echo shar: Extracting \"awm/menus/eventstack.h\" \(1616 characters\)
  864. sed "s/^X//" >awm/menus/eventstack.h <<'END_OF_awm/menus/eventstack.h'
  865. X#ident   "%W% %G%"
  866. X
  867. X/*
  868. X#ifndef lint
  869. Xstatic char sccs_id[] = "@(#)eventstack.h    2.1 12/16/87  Siemens Corporate Research and Support, Inc.";
  870. X#endif
  871. X*/
  872. X
  873. X
  874. X/* 
  875. X *  RTL Menu Package Version 1.0
  876. X * by Joe Camaratta and Mike Berman, Siemens RTL, Princeton NJ, 1987
  877. X *
  878. X * eventstack.h: data structure definitions for eventstack package.
  879. X * rewritten almost entirely by Jordan Hubbard, Ardent Computer corp.
  880. X * Previous version did not agree with many compilers.
  881. X *
  882. X */
  883. X
  884. X#include "X11/copyright.h"
  885. X/*
  886. X *
  887. X * Copyright 1987, 1988 by Ardent Computer Corporation, Sunnyvale, Ca.
  888. X *
  889. X * Copyright 1987 by Jordan Hubbard.
  890. X *
  891. X *
  892. X *                         All Rights Reserved
  893. X *
  894. X * Permission to use, copy, modify, and distribute this software and its
  895. X * documentation for any purpose and without fee is hereby granted,
  896. X * provided that the above copyright notice appear in all copies and that
  897. X * both that copyright notice and this permission notice appear in
  898. X * supporting documentation, and that the name of Ardent Computer
  899. X * Corporation or Jordan Hubbard not be used in advertising or publicity
  900. X * pertaining to distribution of the software without specific, written
  901. X * prior permission.
  902. X *
  903. X */
  904. X
  905. X#ifndef _XLIB_H_
  906. X#include "X11/Xlib.h"
  907. X#endif
  908. X
  909. X#ifndef STD_DEFS
  910. X#include "std_defs.h"
  911. X#endif
  912. X
  913. X#define EventStackIsEmpty(stk) (*stk == (struct Ev_q *)0)
  914. X
  915. Xstruct Ev_q {
  916. X     struct Ev_q *prev;
  917. X     XEvent *event;
  918. X};
  919. X
  920. X
  921. Xextern void SaveEvents(), RestoreEvents(), DisposeEvents(),
  922. X    DiscardEventStore(), AddEventToStore(), RemoveEventFromStore();
  923. X
  924. Xextern bool EventStoreIsEmpty();
  925. Xextern void PushEvent();
  926. Xextern XEvent *PopEvent();
  927. X
  928. X
  929. X
  930. END_OF_awm/menus/eventstack.h
  931. if test 1616 -ne `wc -c <awm/menus/eventstack.h`; then
  932.     echo shar: \"awm/menus/eventstack.h\" unpacked with wrong size!
  933. fi
  934. # end of overwriting check
  935. fi
  936. if test -f awm/menus/gray1.h -a "${1}" != "-c" ; then 
  937.   echo shar: Will not over-write existing file \"awm/menus/gray1.h\"
  938. else
  939. echo shar: Extracting \"awm/menus/gray1.h\" \(298 characters\)
  940. sed "s/^X//" >awm/menus/gray1.h <<'END_OF_awm/menus/gray1.h'
  941. X#ident   "%W% %G%"
  942. X
  943. X#define gray1_width 16
  944. X#define gray1_height 16
  945. Xstatic char gray1_bits[] = {
  946. X   0x55, 0x55, 0xaa, 0xaa, 0x55, 0x55, 0xaa, 0xaa, 0x55, 0x55, 0xaa, 0xaa,
  947. X   0x55, 0x55, 0xaa, 0xaa, 0x55, 0x55, 0xaa, 0xaa, 0x55, 0x55, 0xaa, 0xaa,
  948. X   0x55, 0x55, 0xaa, 0xaa, 0x55, 0x55, 0xaa, 0xaa};
  949. END_OF_awm/menus/gray1.h
  950. if test 298 -ne `wc -c <awm/menus/gray1.h`; then
  951.     echo shar: \"awm/menus/gray1.h\" unpacked with wrong size!
  952. fi
  953. # end of overwriting check
  954. fi
  955. if test -f awm/menus/menu.ext.h -a "${1}" != "-c" ; then 
  956.   echo shar: Will not over-write existing file \"awm/menus/menu.ext.h\"
  957. else
  958. echo shar: Extracting \"awm/menus/menu.ext.h\" \(1796 characters\)
  959. sed "s/^X//" >awm/menus/menu.ext.h <<'END_OF_awm/menus/menu.ext.h'
  960. X#ident   "%W% %G%"
  961. X
  962. X/*
  963. X#ifndef lint
  964. Xstatic char sccs_id[] = "@(#)menu.extern.h    2.1 12/16/87  Siemens Corporate Research and Support, Inc.";
  965. X#endif
  966. X*/
  967. X
  968. X
  969. X/* 
  970. X  RTL Menu Package Version 1.0
  971. X  by Joe Camaratta and Mike Berman, Siemens RTL, Princeton NJ, 1987
  972. X
  973. X  menu.extern.h: external function declarations for menu package
  974. X*/
  975. X
  976. X#include "X11/copyright.h"
  977. X/*
  978. X *
  979. X * Copyright 1987, 1988 by Ardent Computer Corporation, Sunnyvale, Ca.
  980. X *
  981. X * Copyright 1987 by Jordan Hubbard.
  982. X *
  983. X *
  984. X *                         All Rights Reserved
  985. X *
  986. X * Permission to use, copy, modify, and distribute this software and its
  987. X * documentation for any purpose and without fee is hereby granted,
  988. X * provided that the above copyright notice appear in all copies and that
  989. X * both that copyright notice and this permission notice appear in
  990. X * supporting documentation, and that the name of Ardent Computer
  991. X * Corporation or Jordan Hubbard not be used in advertising or publicity
  992. X * pertaining to distribution of the software without specific, written
  993. X * prior permission.
  994. X *
  995. X */
  996. X
  997. Xextern MenuItem *AddMenuItem();
  998. Xextern bool     DisposeItem();
  999. Xextern void     DisposeMenu();
  1000. Xextern void     InitMenu();
  1001. Xextern bool     SetItemText();
  1002. Xextern Menu     *NewMenu();
  1003. Xextern bool     SetItemCheck();
  1004. Xextern bool     SetItemDisable();
  1005. Xextern MenuItem *Display_Menu();
  1006. Xextern void     Undisplay_Menu();
  1007. Xextern void     MenuInvert();
  1008. Xextern void     PlacePointer();
  1009. Xextern void     Draw_Menu();
  1010. Xextern void     Draw_Item();
  1011. X
  1012. Xextern MenuItem *MenuGetItem();
  1013. Xextern MenuItem *MenuItemByName();
  1014. Xextern MenuItem *MenuItemByData();
  1015. Xextern Menu     *MenuGetMenu();
  1016. Xextern int      ItemGetMiddleY();
  1017. Xextern void     SetInitialItem();
  1018. Xextern void     ClearInitialItem();
  1019. Xextern MenuItem *GetInitialItem();
  1020. X
  1021. Xextern MenuItem *TrackMenu();
  1022. X
  1023. X
  1024. X
  1025. X
  1026. X
  1027. X
  1028. X
  1029. X
  1030. X
  1031. X
  1032. END_OF_awm/menus/menu.ext.h
  1033. if test 1796 -ne `wc -c <awm/menus/menu.ext.h`; then
  1034.     echo shar: \"awm/menus/menu.ext.h\" unpacked with wrong size!
  1035. fi
  1036. # end of overwriting check
  1037. fi
  1038. if test -f awm/menus/null_icon.h -a "${1}" != "-c" ; then 
  1039.   echo shar: Will not over-write existing file \"awm/menus/null_icon.h\"
  1040. else
  1041. echo shar: Extracting \"awm/menus/null_icon.h\" \(122 characters\)
  1042. sed "s/^X//" >awm/menus/null_icon.h <<'END_OF_awm/menus/null_icon.h'
  1043. X#ident   "%W% %G%"
  1044. X
  1045. X#define null_icon_width 1
  1046. X#define null_icon_height 1
  1047. Xstatic char null_icon_bits[] = 
  1048. X{
  1049. X    0x00
  1050. X};
  1051. X
  1052. X
  1053. X
  1054. END_OF_awm/menus/null_icon.h
  1055. if test 122 -ne `wc -c <awm/menus/null_icon.h`; then
  1056.     echo shar: \"awm/menus/null_icon.h\" unpacked with wrong size!
  1057. fi
  1058. # end of overwriting check
  1059. fi
  1060. if test -f awm/menus/rtlmenu.h -a "${1}" != "-c" ; then 
  1061.   echo shar: Will not over-write existing file \"awm/menus/rtlmenu.h\"
  1062. else
  1063. echo shar: Extracting \"awm/menus/rtlmenu.h\" \(2087 characters\)
  1064. sed "s/^X//" >awm/menus/rtlmenu.h <<'END_OF_awm/menus/rtlmenu.h'
  1065. X#ident   "%W% %G%"
  1066. X
  1067. X/*
  1068. X#ifndef lint
  1069. Xstatic char sccs_id[] = "@(#)rtlmenu.h    2.1 12/16/87  Siemens Corporate Research and Support, Inc.";
  1070. X#endif
  1071. X*/
  1072. X
  1073. X
  1074. X/* 
  1075. X  RTL Menu Package Version 1.0
  1076. X  by Joe Camaratta and Mike Berman, Siemens RTL, Princeton NJ, 1987
  1077. X
  1078. X  rtlmenu.h: definitions for rtlmenu user
  1079. X*/
  1080. X
  1081. X#include "X11/copyright.h"
  1082. X/*
  1083. X *
  1084. X * Copyright 1987, 1988 by Ardent Computer Corporation, Sunnyvale, Ca.
  1085. X *
  1086. X * Copyright 1987 by Jordan Hubbard.
  1087. X *
  1088. X *
  1089. X *                         All Rights Reserved
  1090. X *
  1091. X * Permission to use, copy, modify, and distribute this software and its
  1092. X * documentation for any purpose and without fee is hereby granted,
  1093. X * provided that the above copyright notice appear in all copies and that
  1094. X * both that copyright notice and this permission notice appear in
  1095. X * supporting documentation, and that the name of Ardent Computer
  1096. X * Corporation or Jordan Hubbard not be used in advertising or publicity
  1097. X * pertaining to distribution of the software without specific, written
  1098. X * prior permission.
  1099. X *
  1100. X */
  1101. X
  1102. X/*
  1103. X
  1104. XCopyright 1987 by
  1105. X    Siemens Corporate Research and Support, Inc., Princeton, New Jersey
  1106. X
  1107. XPermission to use, copy, modify, and distribute this software
  1108. Xand its documentation for any purpose and without fee is
  1109. Xhereby granted, provided that the above copyright notice
  1110. Xappear in all copies and that both that copyright notice and
  1111. Xthis permission notice appear in supporting documentation, and
  1112. Xthat the name of Siemens not be used in advertising or
  1113. Xpublicity pertaining to distribution of the software without
  1114. Xspecific, written prior permission.  Siemens makes no
  1115. Xrepresentations about the suitability of this software for any
  1116. Xpurpose.  It is provided "as is" without express or implied
  1117. Xwarranty.
  1118. X
  1119. X*/
  1120. X
  1121. X#ifndef STD_DEFS
  1122. X#include "std_defs.h"
  1123. X#endif
  1124. X
  1125. Xstruct _RTLPoint
  1126. X{
  1127. X    int x, y;
  1128. X};
  1129. X
  1130. Xtypedef struct _RTLPoint RTLPoint;
  1131. Xtypedef pointer RTLMenu;
  1132. Xtypedef pointer RTLMenuItem;    
  1133. X
  1134. XRTLMenu RTLMenu_Create();
  1135. XRTLMenuItem RTLMenu_Append_Call();
  1136. XRTLMenuItem RTLMenu_Append_Checkback();
  1137. XRTLMenuItem RTLMenu_Append_Submenu();
  1138. X
  1139. X#ifndef OPTION_FLAGS
  1140. X#include "rtlmnu.opt.h"
  1141. X#endif
  1142. END_OF_awm/menus/rtlmenu.h
  1143. if test 2087 -ne `wc -c <awm/menus/rtlmenu.h`; then
  1144.     echo shar: \"awm/menus/rtlmenu.h\" unpacked with wrong size!
  1145. fi
  1146. # end of overwriting check
  1147. fi
  1148. if test -f awm/menus/rtlmnu.opt.h -a "${1}" != "-c" ; then 
  1149.   echo shar: Will not over-write existing file \"awm/menus/rtlmnu.opt.h\"
  1150. else
  1151. echo shar: Extracting \"awm/menus/rtlmnu.opt.h\" \(1847 characters\)
  1152. sed "s/^X//" >awm/menus/rtlmnu.opt.h <<'END_OF_awm/menus/rtlmnu.opt.h'
  1153. X#ident   "%W% %G%"
  1154. X
  1155. X/*
  1156. X#ifndef lint
  1157. Xstatic char sccs_id[] = "@(#)rtlmenu.options.h    2.1 12/16/87  Siemens Corporate Research and Support, Inc.";
  1158. X#endif
  1159. X*/
  1160. X
  1161. X
  1162. X/* 
  1163. X  RTL Menu Package Version 1.0
  1164. X  by Joe Camaratta and Mike Berman, Siemens RTL, Princeton NJ, 1987
  1165. X
  1166. X  rtlmenu.options.h: option flags for rtlmenu user
  1167. X*/
  1168. X
  1169. X/*
  1170. X
  1171. XCopyright 1987 by
  1172. X    Siemens Corporate Research and Support, Inc., Princeton, New Jersey
  1173. X
  1174. XPermission to use, copy, modify, and distribute this software
  1175. Xand its documentation for any purpose and without fee is
  1176. Xhereby granted, provided that the above copyright notice
  1177. Xappear in all copies and that both that copyright notice and
  1178. Xthis permission notice appear in supporting documentation, and
  1179. Xthat the name of Siemens not be used in advertising or
  1180. Xpublicity pertaining to distribution of the software without
  1181. Xspecific, written prior permission.  Siemens makes no
  1182. Xrepresentations about the suitability of this software for any
  1183. Xpurpose.  It is provided "as is" without express or implied
  1184. Xwarranty.
  1185. X
  1186. X*/
  1187. X
  1188. X#define OPTION_FLAGS
  1189. X
  1190. X/* flags for menu operation */
  1191. X
  1192. Xtypedef unsigned int MenuOptionsMask;
  1193. X
  1194. X#define clickokay   (1L<<0) /* accept click-click as equivalent to press-release  */
  1195. X#define savebits    (1L<<1) /* attempt to save/restore area under menu            */
  1196. X#define fixedchild  (1L<<2) /* pull up child in fixed position relative to parent */
  1197. X#define rightoffset (1L<<3) /* when pulling up on right edge, should child be     */
  1198. X                            /* offset to left, allowing parent to remain visible  */
  1199. X#define bigoffset   (1L<<4) /* valid only when rightoffset=1.  if bigoffset=1,    */
  1200. X                            /* offset child far enough to see most of parent;     */
  1201. X                            /* else, just far enough to get back to parent.       */
  1202. X
  1203. X#define RTLMenu_Option_Set(mask, option) (mask |= option)
  1204. END_OF_awm/menus/rtlmnu.opt.h
  1205. if test 1847 -ne `wc -c <awm/menus/rtlmnu.opt.h`; then
  1206.     echo shar: \"awm/menus/rtlmnu.opt.h\" unpacked with wrong size!
  1207. fi
  1208. # end of overwriting check
  1209. fi
  1210. if test -f awm/neaten.def.h -a "${1}" != "-c" ; then 
  1211.   echo shar: Will not over-write existing file \"awm/neaten.def.h\"
  1212. else
  1213. echo shar: Extracting \"awm/neaten.def.h\" \(1115 characters\)
  1214. sed "s/^X//" >awm/neaten.def.h <<'END_OF_awm/neaten.def.h'
  1215. X#ident   "%W% %G%"
  1216. X
  1217. X
  1218. X
  1219. X#ifndef lint
  1220. Xstatic char *rcsid_neaten_def_h = "$Header: neaten.def.h,v 1.1 88/06/15 15:26:00 jkh Exp $";
  1221. X#endif  lint
  1222. X
  1223. X#include "X11/copyright.h"
  1224. X/*
  1225. X *
  1226. X * Copyright 1987, 1988 by Ardent Computer Corporation, Sunnyvale, Ca.
  1227. X *
  1228. X * Copyright 1987 by Jordan Hubbard.
  1229. X *
  1230. X *
  1231. X *                         All Rights Reserved
  1232. X *
  1233. X * Permission to use, copy, modify, and distribute this software and its
  1234. X * documentation for any purpose and without fee is hereby granted,
  1235. X * provided that the above copyright notice appear in all copies and that
  1236. X * both that copyright notice and this permission notice appear in
  1237. X * supporting documentation, and that the name of Ardent Computer
  1238. X * Corporation or Jordan Hubbard not be used in advertising or publicity
  1239. X * pertaining to distribution of the software without specific, written
  1240. X * prior permission.
  1241. X *
  1242. X */
  1243. X
  1244. X#define NEATEN_DEFINE
  1245. X
  1246. Xtypedef enum {
  1247. X    Place_Closest,
  1248. X    Place_Top,
  1249. X    Place_Bottom,
  1250. X    Place_Left,
  1251. X    Place_Right,
  1252. X    Place_Center
  1253. X} Placement;
  1254. X
  1255. X#define NEATEN_TRUE 1
  1256. X#define NEATEN_FALSE 0
  1257. X
  1258. X#define MAX_PRIORITY 100
  1259. X#define MIN_PRIORITY -100
  1260. END_OF_awm/neaten.def.h
  1261. if test 1115 -ne `wc -c <awm/neaten.def.h`; then
  1262.     echo shar: \"awm/neaten.def.h\" unpacked with wrong size!
  1263. fi
  1264. # end of overwriting check
  1265. fi
  1266. if test -f awm/neaten.ext.h -a "${1}" != "-c" ; then 
  1267.   echo shar: Will not over-write existing file \"awm/neaten.ext.h\"
  1268. else
  1269. echo shar: Extracting \"awm/neaten.ext.h\" \(1275 characters\)
  1270. sed "s/^X//" >awm/neaten.ext.h <<'END_OF_awm/neaten.ext.h'
  1271. X#ident   "%W% %G%"
  1272. X
  1273. X
  1274. X
  1275. X#ifndef lint
  1276. Xstatic char *rcsid_neaten_ext_h = "$Header: neaten.ext.h,v 1.1 88/06/15 15:26:00 jkh Exp $";
  1277. X#endif  lint
  1278. X
  1279. X#include "X11/copyright.h"
  1280. X/*
  1281. X *
  1282. X * Copyright 1987, 1988 by Ardent Computer Corporation, Sunnyvale, Ca.
  1283. X *
  1284. X * Copyright 1987 by Jordan Hubbard.
  1285. X *
  1286. X *
  1287. X *                         All Rights Reserved
  1288. X *
  1289. X * Permission to use, copy, modify, and distribute this software and its
  1290. X * documentation for any purpose and without fee is hereby granted,
  1291. X * provided that the above copyright notice appear in all copies and that
  1292. X * both that copyright notice and this permission notice appear in
  1293. X * supporting documentation, and that the name of Ardent Computer
  1294. X * Corporation or Jordan Hubbard not be used in advertising or publicity
  1295. X * pertaining to distribution of the software without specific, written
  1296. X * prior permission.
  1297. X *
  1298. X */
  1299. X
  1300. X#ifndef NEATEN_DEFINE
  1301. X#include "neaten.def.h"
  1302. X#endif
  1303. X
  1304. Xextern void Neaten_Desktop();
  1305. Xextern void Neaten_Initialize();
  1306. Xextern void Neaten_Icon_Placement();
  1307. Xextern void Neaten_Identify();
  1308. Xextern int Neaten_Set_Desired();
  1309. Xextern int Neaten_Set_Min();
  1310. Xextern int Neaten_Set_Max();
  1311. Xextern void Neaten_Prorate();
  1312. Xextern int Neaten_Get_Geometry();
  1313. Xextern void Neaten_Set_Priorities();
  1314. Xextern void Neaten_Set_Options();
  1315. END_OF_awm/neaten.ext.h
  1316. if test 1275 -ne `wc -c <awm/neaten.ext.h`; then
  1317.     echo shar: \"awm/neaten.ext.h\" unpacked with wrong size!
  1318. fi
  1319. # end of overwriting check
  1320. fi
  1321. if test -f awm/support.c -a "${1}" != "-c" ; then 
  1322.   echo shar: Will not over-write existing file \"awm/support.c\"
  1323. else
  1324. echo shar: Extracting \"awm/support.c\" \(2010 characters\)
  1325. sed "s/^X//" >awm/support.c <<'END_OF_awm/support.c'
  1326. X#ident   "%W% %G%"
  1327. X
  1328. X
  1329. X
  1330. X#ifndef lint
  1331. Xstatic char *rcsid_support_c = "$Header: support.c,v 1.1 88/06/15 15:26:00 jkh Exp $";
  1332. X#endif  lint
  1333. X
  1334. X#include "X11/copyright.h"
  1335. X/*
  1336. X *
  1337. X * Copyright 1987, 1988 by Ardent Computer Corporation, Sunnyvale, Ca.
  1338. X *
  1339. X * Copyright 1987 by Jordan Hubbard.
  1340. X *
  1341. X *
  1342. X *                         All Rights Reserved
  1343. X *
  1344. X * Permission to use, copy, modify, and distribute this software and its
  1345. X * documentation for any purpose and without fee is hereby granted,
  1346. X * provided that the above copyright notice appear in all copies and that
  1347. X * both that copyright notice and this permission notice appear in
  1348. X * supporting documentation, and that the name of Ardent Computer
  1349. X * Corporation or Jordan Hubbard not be used in advertising or publicity
  1350. X * pertaining to distribution of the software without specific, written
  1351. X * prior permission.
  1352. X *
  1353. X */
  1354. X
  1355. X#include "support.h"
  1356. X#include <stdio.h>
  1357. X     
  1358. X     int _rtn_level;
  1359. Xint _rtn_trace;
  1360. X
  1361. Xstatic struct func_stack {
  1362. X     char *rtn_name;
  1363. X     struct func_stack *next;
  1364. X} *Head;
  1365. X
  1366. Xchar *curr_rtn()
  1367. X{
  1368. X     if (!Head)
  1369. X      return((char *)0);
  1370. X     else
  1371. X      return(Head->rtn_name);
  1372. X}
  1373. X
  1374. Xvoid push_rtn(s)
  1375. Xregister char *s;
  1376. X{
  1377. X     if (!Head) {
  1378. X      Head = (struct func_stack *)malloc(sizeof(struct func_stack));
  1379. X      if (!Head) {
  1380. X           fprintf(stderr, "Couldn't malloc new func_stack entry!\n");
  1381. X           exit(1);
  1382. X      }
  1383. X      Head->rtn_name = s;
  1384. X      Head->next = 0;
  1385. X     }
  1386. X     else {
  1387. X      struct func_stack *ptr;
  1388. X      
  1389. X      ptr =  (struct func_stack *)malloc(sizeof(struct func_stack));
  1390. X      if (!ptr) {
  1391. X           fprintf(stderr, "Couldn't malloc new func_stack entry!\n");
  1392. X           exit(1);
  1393. X      }
  1394. X      ptr->rtn_name = s;
  1395. X      ptr->next = Head;
  1396. X      Head = ptr;
  1397. X     }
  1398. X     _rtn_level++;
  1399. X     if (_rtn_trace) {
  1400. X      int i;
  1401. X      
  1402. X      for (i = 0; i < _rtn_level; i++)
  1403. X           putchar('\t');
  1404. X      printf("%s(%d)\n", Head->rtn_name, _rtn_level);
  1405. X     }
  1406. X}
  1407. X
  1408. Xvoid pop_rtn()
  1409. X{
  1410. X     struct func_stack *ptr;
  1411. X
  1412. X     if (!Head)
  1413. X      return;
  1414. X     ptr = Head;
  1415. X     Head = Head->next;
  1416. X     free(ptr);
  1417. X     _rtn_level--;
  1418. X}
  1419. END_OF_awm/support.c
  1420. if test 2010 -ne `wc -c <awm/support.c`; then
  1421.     echo shar: \"awm/support.c\" unpacked with wrong size!
  1422. fi
  1423. # end of overwriting check
  1424. fi
  1425. if test -f awm/support.h -a "${1}" != "-c" ; then 
  1426.   echo shar: Will not over-write existing file \"awm/support.h\"
  1427. else
  1428. echo shar: Extracting \"awm/support.h\" \(1755 characters\)
  1429. sed "s/^X//" >awm/support.h <<'END_OF_awm/support.h'
  1430. X#ident   "%W% %G%"
  1431. X
  1432. X#ifndef lint
  1433. Xstatic char *rcsid_support_h = "$Header: support.h,v 1.2 88/07/23 17:26:00 jkh Exp $";
  1434. X#endif  lint
  1435. X
  1436. X#include "X11/copyright.h"
  1437. X/*
  1438. X *
  1439. X * Copyright 1987, 1988 by Ardent Computer Corporation, Sunnyvale, Ca.
  1440. X *
  1441. X * Copyright 1987 by Jordan Hubbard.
  1442. X *
  1443. X *
  1444. X *                         All Rights Reserved
  1445. X *
  1446. X * Permission to use, copy, modify, and distribute this software and its
  1447. X * documentation for any purpose and without fee is hereby granted,
  1448. X * provided that the above copyright notice appear in all copies and that
  1449. X * both that copyright notice and this permission notice appear in
  1450. X * supporting documentation, and that the name of Ardent Computer
  1451. X * Corporation or Jordan Hubbard not be used in advertising or publicity
  1452. X * pertaining to distribution of the software without specific, written
  1453. X * prior permission.
  1454. X *
  1455. X */
  1456. X
  1457. X#undef STACK_RTNAMES
  1458. X#undef TRACE
  1459. X
  1460. X#ifdef TRACE
  1461. X#define Entry(woo) { printf("Pushing to %s\n", woo); push_rtn(woo); }
  1462. X#define Leave(woo) { printf("Pop from %s with %x\n", curr_rtn(), woo); pop_rtn(); return(woo); }
  1463. X#define Leave_void { printf("Pop from %s (void)\n", curr_rtn()); pop_rtn(); return; }
  1464. X#define Trace_on _rtn_trace = 1;
  1465. X#define Trace_off _rtn_trace = 0;
  1466. Xextern char *curr_rtn();
  1467. Xextern int _rtn_level;
  1468. Xextern int _rtn_trace;
  1469. X#else
  1470. X#ifdef SAVERTNAME
  1471. X#define Entry(woo) push_rtn(woo);
  1472. X#define Leave(woo) { pop_rtn(); return(woo); }
  1473. X#define Leave_void { pop_rtn(); return; }
  1474. X#define Trace_on _rtn_trace = 1;
  1475. X#define Trace_off _rtn_trace = 0;
  1476. Xextern char *curr_rtn();
  1477. Xextern int _rtn_level;
  1478. Xextern int _rtn_trace;
  1479. X#else
  1480. X#define Entry(s)
  1481. X#define Leave(s) return(s);
  1482. X#define Leave_void return;
  1483. X#define Trace_on
  1484. X#define Trace_off
  1485. X#define Curr_rtn()
  1486. X#endif /* SAVERTNAME */
  1487. X#endif /* TRACE */
  1488. END_OF_awm/support.h
  1489. if test 1755 -ne `wc -c <awm/support.h`; then
  1490.     echo shar: \"awm/support.h\" unpacked with wrong size!
  1491. fi
  1492. # end of overwriting check
  1493. fi
  1494. if test -f awm/system.awmrc -a "${1}" != "-c" ; then 
  1495.   echo shar: Will not over-write existing file \"awm/system.awmrc\"
  1496. else
  1497. echo shar: Extracting \"awm/system.awmrc\" \(1960 characters\)
  1498. sed "s/^X//" >awm/system.awmrc <<'END_OF_awm/system.awmrc'
  1499. X# $Source $
  1500. X# $Author $
  1501. X# $Header $
  1502. X# Copyright (c) 1987 by the Massachusetts Institute of Technology.
  1503. X#
  1504. X# This is a startup file for uwm that produces an xwm lookalike,
  1505. X# but adds two useful menus.  It is patterned on the public
  1506. X# distribution ../lib/X/uwm/jg.uwmrc file by Jim Gettys.
  1507. X#
  1508. Xresetbindings
  1509. Xresetmenus
  1510. Xresetgadgets
  1511. X
  1512. X# FUNCTION    KEYS    CONTEXT        MOUSE BUTTON ACTIONS
  1513. Xf.newiconify=    meta    :window|icon:    delta left
  1514. Xf.raise=    meta    :window|icon:    delta left
  1515. Xf.lower=    meta    :window|icon:    left up
  1516. Xf.raise=    meta    :window:    middle down
  1517. Xf.resize=    meta    :window:    delta middle
  1518. Xf.iconify=    meta    :icon:        middle up
  1519. Xf.raise=    meta    :window|icon:    right down
  1520. Xf.move=        meta    :window|icon:    delta right
  1521. Xf.circledown=    meta    :root:        left down
  1522. Xf.circleup=    meta    :root:        right down
  1523. Xf.circledown=    m|s    ::        left down
  1524. Xf.menu=            :root:        middle down    : "WindowOps"
  1525. Xf.menu=        m|s    ::        middle down    : "WindowOps"
  1526. Xf.menu=        m|s    :root:        left down    : "Preferences"
  1527. Xf.menu=        m|s    ::        left down    : "Preferences"
  1528. Xf.circleup=    m|s    ::        right down
  1529. Xf.iconify=    m|c    :window|icon:    left down
  1530. Xf.newiconify=    m|l    :window|icon:    left down
  1531. Xf.raise=    m|l    :window|icon:    left up
  1532. Xf.pushright=    m|l    :window|icon:    right down
  1533. Xf.pushleft=    m|c    :window|icon:    right down
  1534. Xf.pushup=    m|l    :window|icon:    middle down
  1535. Xf.pushdown=    m|c    :window|icon:    middle down
  1536. X
  1537. Xmenu = "Preferences" {
  1538. XBell Loud:    !"xset b 7&"
  1539. XBell Normal:    !"xset b 3&"
  1540. XBell Off:    !"xset b off&"
  1541. XClick Loud:    !"xset c 8&"
  1542. XClick Soft:    !"xset c on&"
  1543. XClick Off:    !"xset c off&"
  1544. XLock On:    !"xset l on&"
  1545. XLock Off:    !"xset l off&"
  1546. XMouse Fast:    !"xset m 4 2&"
  1547. XMouse Normal:    !"xset m 2 5&"
  1548. XMouse Slow:    !"xset m 1 1&"
  1549. X}
  1550. X
  1551. Xmenu = "WindowOps" {
  1552. XPreferences:    f.menu:    "Preferences"
  1553. XNew Window:    !"xterm&"
  1554. XRefreshScreen:    f.refresh
  1555. XRedraw:        f.redraw
  1556. XMove:        f.move
  1557. XResize:        f.resize
  1558. XLower:        f.lower
  1559. XRaise:        f.raise
  1560. XCircUp:        f.circleup
  1561. XCircDown:    f.circledown
  1562. XAutoIconify:    f.iconify
  1563. XLowerIconify:    f.newiconify
  1564. XNewIconify:    f.newiconify
  1565. XFocus:        f.focus
  1566. XFreeze:        f.pause
  1567. XUnFreeze:    f.continue
  1568. XRestart:    f.restart
  1569. X}
  1570. END_OF_awm/system.awmrc
  1571. if test 1960 -ne `wc -c <awm/system.awmrc`; then
  1572.     echo shar: \"awm/system.awmrc\" unpacked with wrong size!
  1573. fi
  1574. # end of overwriting check
  1575. fi
  1576. if test -f awm/twm.Xdefaults -a "${1}" != "-c" ; then 
  1577.   echo shar: Will not over-write existing file \"awm/twm.Xdefaults\"
  1578. else
  1579. echo shar: Extracting \"awm/twm.Xdefaults\" \(613 characters\)
  1580. sed "s/^X//" >awm/twm.Xdefaults <<'END_OF_awm/twm.Xdefaults'
  1581. Xawm.icon.font: vtsingle
  1582. Xawm.icon.pixmap: blank.bm
  1583. Xawm.popup.font: fg-22
  1584. Xawm.windowName.offset: 16
  1585. Xawm.title.height: 16
  1586. Xawm.title.font: vtsingle
  1587. Xawm.title.boldFont: vtsingle
  1588. Xawm.title.boldPixmap: twm.hilite.bm
  1589. Xawm.title.push:    false
  1590. Xawm.path:    /usr/src/X.V11R2/clients/awm/bitmaps
  1591. Xawm.delta:    3
  1592. Xawm.freeze:    on
  1593. Xawm.grid:    on
  1594. Xawm.zap:    off
  1595. Xawm.autoraise:    off
  1596. Xawm.hilite:    on
  1597. Xawm.titles:    on
  1598. Xawm.gadgets:    on
  1599. Xawm.wall:    off
  1600. Xawm.warpOnRaise: off
  1601. Xawm.warpOnDeIconify: off
  1602. Xawm.warpOnIconify: off
  1603. Xawm.frameFocus: on
  1604. Xawm.rootResizeBox: on
  1605. Xawm.border.hilite: off
  1606. Xawm.gadget.border: 0
  1607. Xawm.icon.hPad:    2
  1608. Xawm.icon.vPad:    5
  1609. Xawm.volume:    4
  1610. END_OF_awm/twm.Xdefaults
  1611. if test 613 -ne `wc -c <awm/twm.Xdefaults`; then
  1612.     echo shar: \"awm/twm.Xdefaults\" unpacked with wrong size!
  1613. fi
  1614. # end of overwriting check
  1615. fi
  1616. if test -f awm/twm.awmrc -a "${1}" != "-c" ; then 
  1617.   echo shar: Will not over-write existing file \"awm/twm.awmrc\"
  1618. else
  1619. echo shar: Extracting \"awm/twm.awmrc\" \(1378 characters\)
  1620. sed "s/^X//" >awm/twm.awmrc <<'END_OF_awm/twm.awmrc'
  1621. X# $Source $
  1622. X# $Author $
  1623. X# $Header $
  1624. X#
  1625. X# This is a startup file for awm that produces a twm (using defaults)
  1626. X# lookalike (sort of) at the top level. Some semantics of resize and the icon
  1627. X# appearances are incompatable but will change in the near future.
  1628. X# The major difference in appearance you'll notice is the "bold"
  1629. X# appearance of the window. This is due to the fact that I use the "bold"
  1630. X# pixmap to tile the title window, I don't draw it on. I have to do this
  1631. X# since, unlike twm, any arbitrary number of gadgets (of any arbitrary size)
  1632. X# might be defined and it would be far too much trouble to try and draw
  1633. X# a tile in between all/some of them.
  1634. X#
  1635. X# Don't forget that you need to use twm.Xdefaults as well as this file.
  1636. X#
  1637. X
  1638. Xresetbindings
  1639. Xresetmenus
  1640. Xresetgadgets
  1641. X
  1642. Xgadget[0] = (twm.iconify.bm) ^ 1 | LeftGravity
  1643. Xgadget[1] = (twm.resize.bm) ^ 1 | RightGravity
  1644. Xgadget[2] = (twm.focus.bm) ^ 2 | RightGravity
  1645. X
  1646. X# FUNCTION    KEYS    CONTEXT        MOUSE BUTTON ACTIONS
  1647. Xf.move=            :title|icon:    middle motion
  1648. Xf.raise=        :title:        left down
  1649. Xf.raise=        :title:        left up
  1650. Xf.lower=        :title:        right down
  1651. Xf.iconify=        :g[0]:        left down
  1652. Xf.iconify=        :g[0]:        middle down
  1653. Xf.iconify=        :g[0]:        right down
  1654. Xf.iconify=        :icon:        left down
  1655. Xf.resize=        :g[1]:        left down
  1656. Xf.resize=        :g[1]:        middle down
  1657. Xf.resize=        :g[1]:        right down
  1658. Xf.focus=        :g[2]:        left down
  1659. Xf.focus=        :g[2]:        middle down
  1660. Xf.focus=        :g[2]:        right down
  1661. END_OF_awm/twm.awmrc
  1662. if test 1378 -ne `wc -c <awm/twm.awmrc`; then
  1663.     echo shar: \"awm/twm.awmrc\" unpacked with wrong size!
  1664. fi
  1665. # end of overwriting check
  1666. fi
  1667. echo shar: End of archive 1 \(of 13\).
  1668. cp /dev/null ark1isdone
  1669. MISSING=""
  1670. for I in 1 2 3 4 5 6 7 8 9 10 11 12 13 ; do
  1671.     if test ! -f ark${I}isdone ; then
  1672.     MISSING="${MISSING} ${I}"
  1673.     fi
  1674. done
  1675. if test "${MISSING}" = "" ; then
  1676.     echo You have unpacked all 13 archives.
  1677.     rm -f ark[1-9]isdone ark[1-9][0-9]isdone
  1678. else
  1679.     echo You still need to unpack the following archives:
  1680.     echo "        " ${MISSING}
  1681. fi
  1682. ##  End of shell archive.
  1683. exit 0
  1684. Mike Wexler(wyse!mikew)    Phone: (408)433-1000 x1330
  1685.